package com.example.hello.dto;

import jakarta.validation.constraints.NotBlank;

/**
 * 登录请求DTO
 */
public class LoginRequest {
    @NotBlank(message = "员工ID不能为空")
    private String employeeId;

    @NotBlank(message = "手机号不能为空")
    private String phone;

    public LoginRequest() {}

    public LoginRequest(String employeeId, String phone) {
        this.employeeId = employeeId;
        this.phone = phone;
    }

    public String getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "LoginRequest{" +
                "employeeId='" + employeeId + '\'' +
                ", phone='" + phone + '\'' +
                '}';
    }
}

